Skip to content

Add description to Marker#307

Merged
tusharmakkar08 merged 1 commit intoalecthomas:masterfrom
balloob:description
Oct 31, 2017
Merged

Add description to Marker#307
tusharmakkar08 merged 1 commit intoalecthomas:masterfrom
balloob:description

Conversation

@balloob
Copy link
Copy Markdown
Contributor

@balloob balloob commented Oct 31, 2017

Add a description field to markers. Fixes #305.

import voluptuous as vol

SCHEMA = vol.Schema({
  vol.Required('name', description='The name of the user.'): str,
  vol.Required('age', description='The age of the user.'): int,
})

This will allow users to generate documentation by introspecting the schema.

I've started an introspection experiment here.

@coveralls
Copy link
Copy Markdown

coveralls commented Oct 31, 2017

Coverage Status

Coverage increased (+0.005%) to 95.314% when pulling 6180781 on balloob:description into 48d1ea8 on alecthomas:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants